<!-- child组件 -->
<template>
  <div id="child">{{ userInfo.name }}</div>
</template>

<script>
export default {
  data() {
    return {
      userInfo: {
        name: '张三',
      },
    }
  },
}
</script>

<style lang="scss" scoped></style>
